import { anim } from '@feidao-factory/animation';
import { Hash, IAnimation, IAnimationEvent, IAnimationProperties, IAnimationProperty } from '@feidao-factory/animation/types';

/**
 * 生成动画对象
 * @param node 节点对象
 * @param property IanimationProperty属性
 * @param properties Hash<IAnimationProperties> 属性
 * @param evt? IAnimationEvent 事件 可选项
 * @return Ianimation 动画对象
 * @see [api](https://feidao-edu.gitee.io/atom-api/modules/_browser_animation_anim_.html)
 * @example const res = _anim(node,property,properties,evt);
 */
export default function _anim(node: HTMLElement, property: IAnimationProperty, properties: Hash<IAnimationProperties>, evt?: IAnimationEvent) {
	return anim(node, property, properties, evt) as IAnimation;
}
